package com.evil.application.pojo.dto.form.control.code.config;

import com.evil.application.pojo.dto.form.control.related.ControlRelatedDTO;
import com.evil.common.application.dto.judge.JudgeOr;
import jakarta.validation.Valid;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ControlRelatedConfigDTO {

    /**
     * 控件关联
     */
    private List<ControlRelatedDTO> controlRelatedBases;

    /**
     * 控件关联筛选条件
     */
    @Valid
    private List<JudgeOr> judgeOrs;

    public ControlRelatedConfigDTO() {
        this.controlRelatedBases = new ArrayList<>();
        this.judgeOrs = new ArrayList<>();
    }
}
